/**
 * 
 */
package lablayer.controller;

import lablayer.view.ViewComponentInterface;
/**
 *
 */
public class UpdaterFactory {
	public static Updatable createUpdater(ViewComponentInterface viewComponent) {
		try {
                    assert viewComponent != null : "viewComponent is null pointer";
                    Updatable updater = new Updater(viewComponent);
                    return updater;
		} catch (AssertionError e) {
                    //e.printStackTrace();
                    return null;
		}		
	}
}
